<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "shop");
%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/index.jsp"%>
<style type="text/css">
	
	.panel{margin-bottom:0px;}	
</style>
<t:form modelAttribute="paymentSearch" cssClass="form-horizontal" method="post" action="/shop/payment/index" ajaxPost="true" onSuccess="onSuccess">
	<t:hidden path="customerId" />
	<c:import url="seniorSearch.jsp" />
	<t:panel cssClass="panel-flat border-primary border-top-xlg" customBody="true" customHead="true">
		<t:panelHead title="收款记录管理"></t:panelHead>
		<div class="panel-body">
			<div class="row">
				<c:import url="input.jsp" />
			</div>
			<div id="tableContent" class="row" style="overflow:auto;">
				<c:import url="output.jsp" />
			</div>
		</div>
	</t:panel>
</t:form>

<script type="text/javascript">
	$(function(){
		resizeEx();
		$(window).resizeend({delay : 500}, function() {
			resizeEx();
		});
	});
	
	function resizeEx(){
		var parentIframe=window.parent.name;
		if(parentIframe=="relevanceIframe"){
			$("body").css({"cssText":"padding:0px !important",
				
			});
			$("#tableContent").height($(window).height()-226);
			$(".panel-body").height($(window).height()-205)
		}else if(parentIframe=="customer_form"){
			$("body").css({
				"cssText":"padding:10px 10px 10px 10px !important",
				"overflow": "hidden"
			});
			$("#tableContent").height($(window).height()-195);
			$(".panel-body").height($(window).height()-173)
		}else{
			$("body").css({
				"cssText":"padding:10px 10px 0px 10px !important",
				"overflow": "hidden"
			});
			$("#tableContent").height($(window).height()-245);
			$(".panel-body").height($(window).height()-223)
		}
	}

	function onSuccess(res){
		$("#tableContent").html(res);
		
		redrawTable();
	}
	function searchCallback(){
		formSubmit();
	}
	function pagerChangeCallback(){
		formSubmit();
	}
	function sortingCallback(){
		formSubmit();
	}
	function formSubmit(){
		$("form:first").submit();	
	}
</script>

<%@ include file="/WEB-INF/views/shared/master/cntable.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formeditable.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared//master/contentFooter.jsp"%>